/*
 * DAWG.cpp
 *
 *  Created on: Sep 18, 2011
 *      Author: damian
 */

#include "DAWG.h"
using namespace std;

DAWG::DAWG() {
	root = new DAWGNode('*');
}

DAWG::~DAWG() {
	//
}

void DAWG::agregarPalabra(string palabra) {
	root->registerPalabra(palabra);
}

DAWGNodeEnd* DAWG::obtenerPalabra(string palabra) {
	return (DAWGNodeEnd*)root->findPalabra(palabra);
}

void DAWG::inorden(list<string> *lexico, list<RegistroInfo*> *regInd){
	this->root->inorden("", lexico, regInd);
}
